home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / Xsun / patches / sun.h.patch < prev    next >
Encoding:
Text File  |  1991-11-05  |  5.3 KB  |  159 lines

  1. *** /tmp/,RCSt1790819    Mon Nov  4 17:53:35 1991
  2. --- sun.h    Wed Jan  9 11:52:31 1991
  3. ***************
  4. *** 13,57 ****
  5.    * express or implied warranty.
  6.    *
  7.    *    "$XConsortium: sun.h,v 5.7 89/12/06 09:37:35 rws Exp $ SPRITE (Berkeley)"
  8.    */
  9.   #ifndef _SUN_H_
  10.   #define _SUN_H_
  11.   
  12. ! #include    <errno.h>
  13. ! extern int  errno;
  14. ! #include    <sys/param.h>
  15. ! #include    <sys/types.h>
  16. ! #include    <sys/time.h>
  17. ! #include    <sys/file.h>
  18. ! #include    <sys/fcntl.h>
  19. ! #include    <sys/signal.h>
  20. ! #include    <sundev/kbd.h>
  21. ! #include    <sundev/kbio.h>
  22. ! #include    <sundev/msio.h>
  23. ! #include    <sun/fbio.h>
  24. ! /*
  25. !  * SUN_WINDOWS is now defined (or not) by the Makefile
  26. !  * variable $(SUNWINDOWSFLAGS) in server/Makefile.
  27. !  */
  28. ! #ifdef SUN_WINDOWS
  29. ! #include    <varargs.h>
  30. ! #include    <sys/ioctl.h>
  31. ! #include    <stdio.h>
  32. ! #include    <pixrect/pixrect_hs.h>
  33. ! #include    <sunwindow/rect.h>
  34. ! #include    <sunwindow/rectlist.h>
  35. ! #include    <sunwindow/pixwin.h>
  36. ! #include    <sunwindow/win_screen.h>
  37. ! #include    <sunwindow/win_input.h>
  38. ! #include    <sunwindow/cms.h>
  39. ! #include    <sunwindow/win_struct.h>
  40. ! #else 
  41. ! /* already included by sunwindow/win_input.h */
  42. ! #include    <sundev/vuid_event.h>
  43. ! #endif SUN_WINDOWS
  44.   
  45.   #include    "X.h"
  46.   #include    "Xproto.h"
  47.   #include    "scrnintstr.h"
  48. --- 13,40 ----
  49.    * express or implied warranty.
  50.    *
  51.    * "$XConsortium: sun.h,v 5.7 89/12/06 09:37:35 rws Exp $ SPRITE (Berkeley)"
  52. +  * $Header: /X11/R4/src/cmds/X/ddx/Xsun/RCS/sun.h,v 1.5 91/01/09 11:52:30 kupfer Exp $
  53.    */
  54.   #ifndef _SUN_H_
  55.   #define _SUN_H_
  56.   
  57. ! #define Time      SpriteTime
  58.   
  59. + /* 
  60. +  * Force spriteTime.h to be included here, so that its Time typedef 
  61. +  * gets the correct name.
  62. +  */
  63. + #include    <sprite.h>
  64. + #include    <spriteTime.h>
  65. + #include    <kernel/devVid.h>
  66. + #include    <dev/mouse.h>
  67. + #include    <vm.h>
  68. + #include "sys/fb.h"
  69. + #undef Time
  70.   #include    "X.h"
  71.   #include    "Xproto.h"
  72.   #include    "scrnintstr.h"
  73. ***************
  74. *** 92,103 ****
  75.   typedef struct kbPrivate {
  76.       int              type;               /* Type of keyboard */
  77.       int              fd;                    /* Descriptor open to device */
  78. !     Firm_event      *(*GetEvents)();      /* Function to read events */
  79.       void          (*ProcessEvent)();    /* Function to process an event */
  80.       void          (*DoneEvents)();      /* Function called when all events */
  81.                       /* have been handled. */
  82.       pointer       devPrivate;            /* Private to keyboard device */
  83. -     Bool      map_q;        /* TRUE if fd has a mapped event queue */
  84.       int          offset;        /* to be added to device keycodes */
  85.       KeybdCtrl      *ctrl;                /* Current control structure (for
  86.                         * keyclick, bell duration, auto-
  87. --- 75,85 ----
  88.   typedef struct kbPrivate {
  89.       int              type;               /* Type of keyboard */
  90.       int              fd;                    /* Descriptor open to device */
  91. !     Mouse_Event      *(*GetEvents)();      /* Function to read events */
  92.       void          (*ProcessEvent)();    /* Function to process an event */
  93.       void          (*DoneEvents)();      /* Function called when all events */
  94.                       /* have been handled. */
  95.       pointer       devPrivate;            /* Private to keyboard device */
  96.       int          offset;        /* to be added to device keycodes */
  97.       KeybdCtrl      *ctrl;                /* Current control structure (for
  98.                         * keyclick, bell duration, auto-
  99. ***************
  100. *** 104,114 ****
  101.                         * repeat, etc.) */
  102.   } KbPrivRec, *KbPrivPtr;
  103.   
  104. - #define    MIN_KEYCODE    8    /* necessary to avoid the mouse buttons */
  105. - #ifndef KB_SUN4
  106. - #define KB_SUN4        0x04    /* Type 4 Sun keyboard */
  107. - #endif
  108.   /*
  109.    * Data private to any sun pointer device.
  110.    *    GetEvents, ProcessEvent and DoneEvents have uses similar to the
  111. --- 86,91 ----
  112. ***************
  113. *** 119,125 ****
  114.    */
  115.   typedef struct ptrPrivate {
  116.       int              fd;                    /* Descriptor to device */
  117. !     Firm_event       *(*GetEvents)();     /* Function to read events */
  118.       void          (*ProcessEvent)();    /* Function to process an event */
  119.       void          (*DoneEvents)();      /* When all the events have been */
  120.                       /* handled, this function will be */
  121. --- 96,102 ----
  122.    */
  123.   typedef struct ptrPrivate {
  124.       int              fd;                    /* Descriptor to device */
  125. !     Mouse_Event       *(*GetEvents)();     /* Function to read events */
  126.       void          (*ProcessEvent)();    /* Function to process an event */
  127.       void          (*DoneEvents)();      /* When all the events have been */
  128.                       /* handled, this function will be */
  129. ***************
  130. *** 190,199 ****
  131.       pointer           fb;         /* Frame buffer itself */
  132.       Bool              mapped;        /* TRUE if frame buffer already mapped */
  133.       Bool        parent;        /* TRUE if fd is a SunWindows window */
  134. !     int                  fd;         /* Descriptor open to frame buffer */
  135. !     struct fbtype     info;        /* Frame buffer characteristics */
  136.       void        (*EnterLeave)();    /* screen switch */
  137.       pointer           fbPriv;        /* Frame-buffer-dependent data */
  138.   } fbFd;
  139.   
  140.   extern Bool sunSupportsDepth8;
  141. --- 167,176 ----
  142.       pointer           fb;         /* Frame buffer itself */
  143.       Bool              mapped;        /* TRUE if frame buffer already mapped */
  144.       Bool        parent;        /* TRUE if fd is a SunWindows window */
  145. !     fbtype         info;        /* Frame buffer characteristics */
  146.       void        (*EnterLeave)();    /* screen switch */
  147.       pointer           fbPriv;        /* Frame-buffer-dependent data */
  148. +     int            fd;        /* fd of frame buffer */
  149.   } fbFd;
  150.   
  151.   extern Bool sunSupportsDepth8;
  152.